/**
 * @namespace dd.math
*/
dd.math.extend({
    sqrt: Math.sqrt,
    log: Math.log,
    init: function()
    {
        //@todo tell templarian that modules break if there missing the init function
        //@todo tell ajcates that I know, I'll edit it in a second
    },
    /**
     * @function
     *  Squares a number.
     *  @param i {int} The number you wish to square.
     *  @returns {int} The square root.
    */
    sqr: function(i)
    {
        return i * i;
    },
    /**
     * @function
     *  Given two points the distance is calculated.
     *  @param x1 {int} x Coordinate of first point.
     *  @param y1 {int} y Coordinate of first point.
     *  @param x2 {int} x Coordinate of second point.
     *  @param y2 {int} y Coordinate of second point.
     *  @returns {int} The distance between the two given points.
    */
    distance: function(x1, y1, x2, y2)
    {
    	return this.sqrt(this.sqr(x2 - x1)) + (this.sqr(y2 - y2));
    }
});